package com.tanhua.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(value = "friend")
public class Friend implements Serializable {

    private ObjectId id;
    private Long created;
    private Long userId;//用户id
    private Long friendId;//好友id


}
